package com.person.monitor;

import android.content.Context;

import java.util.List;

public abstract class BaseProcess  {
    private boolean processEnable;
    private String processName;

    Context context;

    public BaseProcess(Context context,String name){
        this.processName = name;
        this.context = context;
        this.processEnable = QuickShPref.getInstance().getBoolean(getProcessName());
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessEnable(boolean enable){
        processEnable = enable;

        QuickShPref.getInstance().putValueObject(processName,getProcessEnable());
    }

    public boolean getProcessEnable(){
        return processEnable;
    }

    public abstract void processMonitor(List<MonitorInfo> list);
}
